package com.aoip.telemetry.telemetry.entity.enums;

/**
 * @author chenbai
 * @version 1.0
 * @date 2021/8/13 17:05
 */
public enum MsgCodecStatusEnum {

    /**
     * 错误类型信息
     **/
    MSG_CORRECT("1", "报文正确"),
    CRC_ERROR("2", "crc校验错误"),
    SEND_FAIL("3", "发送失败"),
    ANALYSIS_FAIL("4", "解析失败"),
    NON_MONITOR_DATA("5", "无监测数据"),
    ST_NON_REGISTERED("6", "测站未注册"),
    ST_NON_ANALYSIS_GROUP("7", "测站未配置解析组"),
    ST_MORE_THAN_ONE_ANALYSIS_GROUP("8", "测站与功能码关联出不止一个解析组"),
    MSG_ER("9", "报文错误");


    /**
     * 异常编码
     **/
    private String code;
    /**
     * 异常信息
     **/
    private String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    MsgCodecStatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
